package com.imooc.service;

import org.springframework.web.multipart.MultipartFile;

/**
 * @description: fdfs服务类
 * @author: Yz
 * @create: 2020-09-10 16:11
 **/
public interface FdfsService {

    /**
     * 上传到fdfs
     * @param file
     * @param fileExtName
     * @return
     * @throws Exception
     */
    String upload(MultipartFile file,String fileExtName) throws Exception;

    /**
     * 上传到阿里的OSS
     * @param file
     * @param userId
     * @param fileExtName
     * @return
     * @throws Exception
     */
    String uploadOSS(MultipartFile file,String userId,String fileExtName) throws Exception;
}

